﻿using System;
using System.Web.Security;
using com.eforceglobal.crux.controllers;
using com.eforceglobal.crux.configuration;

public partial class Controls_Common_Logout : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void lnkLogout_Click(object sender, EventArgs e)
    {
        SessionData sessionData = new SessionData();
        sessionData.CurrentUser = null;
        sessionData.CurrentView = null;
        sessionData.CurrentViewSection = null;
        FormsAuthentication.SignOut();
        NavigationController.OpenView(CruxConfigurationManager.GetApplicationDefaultView());
    }
}
